<?php
/**
 * Created by PhpStorm.
 * User: yafex
 * Date: 2021/6/4
 * Time: 11:45
 */
class serv_rep_cjdc extends L {

    public static $cookie = "_ga=GA1.2.1338071894.1622772911; _gid=GA1.2.263776393.1622772911; Hm_lvt_6c3e565218cdcbf942a875a4ac6a0d61=1622772912; super_memSessionId1025=92066be2178c8b53d9e0824a2f8e50f0badc5b190f67eefe26b3eaabf5d9fc142f4860a4a700bef6888bc3cd3a9e915d; superuseragent1025=newAgent; _ati=861480595154; userid=127496; username=zoro_zhu; userid=127496; username=zoro_zhu; useremail=zhuyh1419%40gmail.com; mobile=15013677786; mjid=0; erp_version=%E6%94%AF%E6%8C%81%E7%89%88; Hm_lpvt_6c3e565218cdcbf942a875a4ac6a0d61=1622777516; _gat_UA-109072765-1=1; JSESSIONID=CE8A6FB059C2555C013249D5A6A492AE";

    /**
     * 描述 : 获取关键词数据
     * 作者 : Zoro.Zhu
     */
    public static function getWishkw($pageNo = 1){
        $url = "https://overseas.superseller.cn/data/data/wishkw/search.json";
        $data = [
            'root' => 'data',
            'app' => 'pb',
            'pageNo' => $pageNo,
            'pageSize' => '200',
            'order' => 'DESC',
            'sortField' => 'reach_style',
        ];
        $header = [
            'cookie:' . self::$cookie,
            'content-type: application/x-www-form-urlencoded',
        ];
        $data = http_build_query($data);
        $res = core_base::curl($url,$data,'post', $header);
        $info = json_decode($res, true);
        if(!empty($info['data'])) {
            return $info['data']['items'];
        }
        return false;
    }

}
return true;